$(function(){
    setActive2ndMenu(3);
	var Category = Parse.Object.extend("Category");
	var query = new Parse.Query(Category);
	var prolist;
	prolist='';
	query.find({
	  success: function(results) {	  
		  prolist = prolist + displayCategory(results);
		  $("#project-list").html(prolist);
	  },
	  error: function(error) {
        displayNoData('#project-list','No data found');
	  }
	});
	
        displayColumnRight();
	
});

function displayCategory(results){
    var prolist ='';
            for(var i=0; i<results.length; i++){
	  prolist= prolist+'<div class="grid">'+
				'<div class="g-row">'+
				'<div class="g-title"><a href ="'+baseurl+'project/project_category.php?idpro='+results[i].id+'">'+
                stripTags(results[i].get("name"))+
                '</a></div>'+
				'</div></div>';
	  }
      return prolist;
}
/*
<div class="grid">
<div class="img">
<a href="#"><img src="images/data/image1.jpg" alt="image"></a>
</div><div class="g-content">
<div class="g-row">
<a class="g-title" href="http://localhost/handymoby/project/detail.php?id=H8rW2XJLkE">Handy Moby</a>
</div>
<div class="g-row"><label>Budget:</label> 100$</div><div class="g-row"><label>Category:</label>YTmNTg20TE</div><div class="g-row"><label>Time span:</label> 14</div><div class="g-row"><div class="star-outer" id="rate_project_H8rW2XJLkE" style="overflow: auto;"><span class="jquery-ratings-star"></span><span class="jquery-ratings-star"></span><span class="jquery-ratings-star"></span><span class="jquery-ratings-star"></span><span class="jquery-ratings-star"></span></div></div></div><div class="desc">Manage user and data</div></div>*/
